let receiver = document.querySelector("#receiver")
, tip = document.querySelector("#tip")
    ,confirm = document.querySelector("#confirm")
    ,receive_login = document.querySelector("#btnBox #receive_login")
    ,container = document.querySelector("#container")
    ,limit_divide = document.querySelector("#limit_divide")
    ,limit = document.querySelector("#limit");

confirm.onclick = function(){
    if(receiver.value==""){
        tip.value="包裹将发往未知的分拣中心";
        tip.style.color="red";
    }else {
        tip.value = "包裹将发往" + receiver.value.slice(0, 3) + "分拣中心";
    }
}

receive_login.onclick = function(){
    limit.style.animation="div_out"+" "+"2s"+" "+"ease"+" "+"forwards";
    container.style.display = "block";
    container.style.animation="div_move"+" "+"2s"+" "+"ease"+" "+"forwards";
}
limit_divide.onclick = function(){
    container.style.animation="div_out"+" "+"2s"+" "+"ease"+" "+"forwards";
    limit.style.display = "block";
    container.style.display="none";limit.style.animation="div_move"+" "+"2s"+" "+"ease"+" "+"forwards";
}